<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>

</head>
<style>
    ul li img{
        width: 200px;
    }
</style>
<body>

    <div id="app">
        <h2>电影列表</h2>
        <ul>
            <li v-for="item in movie" :key="item.id">
                <img :src='item.url' alt="" >
                <h4>{{item.name}}</h4>
            </li>
        </ul>
    </div>

    <script>

        Vue.config.productionTip = false;
        const vm = new Vue({
            el: '#app',
            data() {
                return {
                    movie: [
                        {
                            id: "001",
                            name: "独行月球",
                            url: "https://puui.qpic.cn/vcover_hz_pic/0/mzc002000y0q8uy1663560447062/0",
                        },
                        {
                            id: "002",
                            name: "新神榜：杨戬",
                            url: "https://puui.qpic.cn/vcover_hz_pic/0/mzc00200mjy32e71663670004536/0",
                        },
                        {
                            id: "003",
                            name: "南游记之闹三界",
                            url: "https://puui.qpic.cn/vcover_hz_pic/0/mzc002000caagdg1666890499964/0",
                        },
                    ],
                }
            }
        })
    </script>
</body>

</html>